package com.situ.ssh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.ssh.common.ServerResponse;
import com.situ.ssh.dao.IAdminDao;
import com.situ.ssh.dao.IStudentDao;
import com.situ.ssh.entity.Admin;
import com.situ.ssh.entity.Student;
import com.situ.ssh.service.IAdminService;
import com.situ.ssh.service.IStudentService;
import com.situ.ssh.util.SearchCondition;

@Service
public class StudentServiceImpl implements IStudentService{
	@Autowired
	private IStudentDao studentDao;

	@Override
	public List<Student> findAll() {
		return studentDao.findAll();
	}

	@Override
	public ServerResponse pageList(SearchCondition searchCondition) {
		return studentDao.pageList(searchCondition);
	}

	@Override
	public ServerResponse delete(Student student) {
		studentDao.delete(student);;
		return ServerResponse.createSuccess("删除成功");
	}

	@Override
	public ServerResponse deleteAll(String ids) {
		// TODO Auto-generated method stub
		return null;
	}


}
